package com.jinunn.system.model.params;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author Jindun
 * @version RoleMenusParam.java, v0.1 2024年 07⽉ 12⽇  下午6:20 Jindun Exp $
 */
@Data
@Accessors(chain = true)
public class RoleMenusParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "角色Id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    @Schema(description = "菜单id组")
    @NotEmpty(message = "菜单id不能为空")
    private List<Long> menuIds;
}
